/*
 * CScriptLoader.h
 *
 *  Created on: 16.2.2009
 *      Author: jari.ravantti
 */

#ifndef CSCRIPTLOADER_H_
#define CSCRIPTLOADER_H_
#include <string.h>
#include <iostream>
#include <lua.hpp>

using namespace std;

class CScriptLoader {
public:
	CScriptLoader(const string& filename );
	virtual ~CScriptLoader();

	void ScriptReload();
	void CallFunction(const string& funcname);

private:
	lua_State* luaVM;
	string m_filename;
};

#endif /* CSCRIPTLOADER_H_ */
